<!DOCTYPE html>

<html class="no-js">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js"></script>
  <script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script>
  <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.13.0/theme-chalk/index.css" />
  <script src="https://cdn.staticfile.org/element-ui/2.13.0/index.js"></script>
  <link rel="stylesheet" href="https://cdn.staticfile.org/animate.css/3.7.0/animate.min.css" />
  <link rel="stylesheet" href="../../../lib/index.css" />
  <script src="../../../lib/avue.js"></script>
</head>

<body>
  <div id="app">
    <avue-form :option="option" v-model="form">

    </avue-form>
  </div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        option: {
          labelWidth: 150,
          formHeight: 200,
          submitText: '完成',
          column: [
            {
              label: "房产证号",
              prop: "name1",
              suffixIcon: 'el-icon-tickets',
              prefixIcon: 'el-icon-tickets',
              rules: [{
                required: true,
                message: "请输入部门名称",
                trigger: "blur"
              }],
            },

            {
              label: "土地来源",
              prop: "type",
              type: "select",
              dicData: 'VAILD',
              mock: {
                type: 'dic',
              },
            },
            {
              label: "是否有配偶",
              prop: "grade1",
              type: "checkbox",
              mock: {
                type: 'dic',
              },
            },
            {
              label: "证件类型",
              prop: "idType",
              type: "select",
              mock: {
                type: 'dic',
              },
            },
            {
              label: "证件号码",
              prop: "idNumber",
              mock: {
                type: 'number'
              },
              rules: [{
                required: true,
                message: "请输入证件号",
                trigger: "blur"
              }],
            },
            {
              label: "姓名",
              prop: "customerName",
              mock: {
                type: 'name'
              },
            },
            {
              label: "出生日期",
              prop: "dat3e",
              type: "date",
              format: 'yyyy-MM-dd',
              valueFormat: 'yyyy-MM-dd',
              mock: {
                type: 'datetime',
                format: 'yyyy-MM-dd'
              },
            },
            {
              label: "手机号",
              mock: {
                type: 'phone'
              },
              rules: [{
                required: true,
                message: "手机号",
                trigger: "blur",
                type: "number"
              }],
              prop: "tel",
              type: 'phone'
            },
            {
              label: "配偶是否共有人",
              prop: "grad2e1",
              type: "checkbox",
              mock: {
                type: 'dic',
              },
            },
            {
              label: "是否有其他共有人",
              prop: "gr2ad2e1",
              type: "checkbox",
              mock: {
                type: 'dic',
              },
            }

          ]
        },
        form: {}
      }
    }
  })
</script>

</html>